﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BlockMain_Class
{
    /// <summary>
    /// 通用合约规则:自动执行的逻辑
    /// </summary>
    public static class PublicContract
    {

        /// <summary>
        /// 执行合约
        /// </summary>
        public static bool Check(List<Record> r)
        {
            //验证数据来源机构是否有效

            //验证交易方式...

            //处理交易的各项细节

            //返回通过

            return true;
        }


        /// <summary>
        /// 获取节点下所有区块
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        //List<AccountBook> GetAll(object key);

        /// <summary>
        /// 获取区块的详细信息
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        //AccountBook GetInfo(string key);



    }
}
